import axios from '../axios'

/*
 * 下拉列表
 */


// 职务(管理员    员工)
export const systemDuty = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=system_user_duty',
    method: 'get',
    params
  })
}
// 账号听启用(停用  启用)
export const systemStatus = (params) => {
  return axios({
    url: '/code/queryKVs?codeType= system_user_status',
    method: 'get',
    params
  })
}
// OEM卡类型(周卡,  月卡)
export const oemType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=oem_card_type',
    method: 'get',
    params
  })
}
// OEM卡种类
export const cardFrom = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=oem_card_from',
    method: 'get',
    params
  })
}
// OEM卡科目
export const oemSubject = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=subject_type',
    method: 'get',
    params
  })
}
// OEM卡激活状态(已激活，  未激活)
export const oemStatus = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=oem_card_status',
    method: 'get',
    params
  })
}
//OEM卡分配者类型(分中心,  网推中心)
export const assignmentType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=assignment_type',
    method: 'get',
    params
  })
}
// 消息接收类型 (所有系统用户,  部分系统用户)
export const messageType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=message_receiver_type',
    method: 'get',
    params
  })
}
// 消息发布类型 (定时，保存后立即发送)
export const publishType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=message_publish_type',
    method: 'get',
    params
  })
}
// 消息状态 (停用  启用)
export const messageStatus = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=message_status',
    method: 'get',
    params
  })
}
//分中心
export const branchcenter = (params) => {
  return axios({
    url: '/branchcenter/queryList',
    method: 'get',
    params
  })
}
// 查询分中心列表（有分页）
export const branchcenterList = (params) => {
  return axios({
    url: '/branchcenter/pageList',
    method: 'get',
    params
  })
}
//三级部门
export const deptLevel3 = (params) => {
  return axios({
    url: '/department/queryDepartmentList?deptLevel=3',
    method: 'get',
    params
  })
}
//二级部门
export const deptLevel2 = (params) => {
  return axios({
    url: '/department/queryDepartmentList?deptLevel=2',
    method: 'get',
    params
  })
}
//一级部门
export const deptLevel1 = (params) => {
  return axios({
    url: '/department/queryDepartmentList?deptLevel=1',
    method: 'get',
    params
  })
}
//用户集合
export const users = (params) => {
  return axios({
    url: '/systemUser/queryUserList',
    method: 'get',
    params
  })
}
//人员状态
export const accountStatus = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=system_user_status',
    method: 'get',
    params
  })
}
// 根据类型查询三级部门(学生)
export const deptLevel3Student = (params) => {
  return axios({
    url: '/department/queryDepartmentList?deptLevel=3&deptType=1',
    method: 'get',
    params
  })
}
// 根据类型查询三级部门(网校)
export const deptLevel3Chinaedu = (params) => {
  return axios({
    url: '/department/queryDepartmentList?deptLevel=3&deptType=3',
    method: 'get',
    params
  })
}
// 根据类型查询三级部门(学酷)
export const deptLevel3Xuecoo = (params) => {
  return axios({
    url: '/department/queryDepartmentList?deptLevel=3&deptType=2',
    method: 'get',
    params
  })
}
// 根据类型查询三级部门(学校)
export const deptLevel3School = (params) => {
  return axios({
    url: '/department/queryDepartmentList?deptLevel=3&deptType=4',
    method: 'get',
    params
  })
}
// 资源查询
export const studentDataFromGroup = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=student_data_from_group_key',
    method: 'get',
    params
  })
}
// 学校报备类别
export const schoolVisitType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=school_visit_type',
    method: 'get',
    params
  })
}
// 联系人单位
export const schoolTrackType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=school_track_type',
    method: 'get',
    params
  })
}
// 查询业务线
export const studentBusinessType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=student_business_type',
    method: 'get',
    params
  })
}
// 查询三方意向程度
export const tripartiteType = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=tripartite_type',
    method: 'get',
    params
  })
}

// 查询客户来源二级
export const queryStudentDataFromByGroupId = (params) => {
  return axios({
    url: '/code/queryStudentDataFromByGroupId',
    method: 'get',
    params
  })
}

